Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: DownloadUsage.py invalid syntax, requirements.txt issues #55

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

james-flynn-ie
Copy link

@james-flynn-ie james-flynn-ie commented Dec 17, 2021

Adding fixes for the DownloadUsage.py script, as it failed to execute due to requirements.txt and invalid syntax errors:

  • Fixed print statement declarations
  File ".\DownloadUsage.py", line 23
    print "Parsing Access Log..."
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Parsing Access Log...")?

  File ".\DownloadUsage.py", line 39
    print Fore.RED + "Could not find",(notfound),"artifacts(most likely deleted)"
          ^
SyntaxError: invalid syntax
  • Removed duplicate import statement (colorama)
  • Replaced 'ur' string type with the synonym 'r' (which is compatible with both Py2 and Py3).
  File ".\DownloadUsage.py", line 26
    p = re.compile(ur'(\d*)-(\d*-\d*\d*......)(........)(.*])(.*)(:)(.*)(for)(.)(.*)(\/)(.*)(\.)')
                     ^
SyntaxError: invalid syntax
  • Removed dependencies from requirements.txt which are installed as part of Python and not found on Pip:
   ERROR: Could not find a version that satisfies the requirement sys
   ERROR: No matching distribution found for sys
   ERROR: Could not find a version that satisfies the requirement re
   ERROR: No matching distribution found for re
   ERROR: Could not find a version that satisfies the requirement json
   ERROR: No matching distribution found for json

Changes verified on Python 3.8.2.

@github-actions
Copy link

github-actions bot commented Dec 17, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@james-flynn-ie
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@james-flynn-ie
Copy link
Author

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant